package cc.decat.escript.object;

import jdk.nashorn.internal.ir.IfNode;

import java.util.HashMap;
import java.util.Map;

public class ESObject {
    private ESType type;
    private Map<String, ESObject> attributes;

    public ESObject(ESType type) {
        this.type = type;
        this.attributes = new HashMap<>();
    }

    public ESStringObject str() {
        return (ESStringObject) this.type.str(this);
    }

    public ESType getType() {
        return type;
    }

    public Map<String, ESObject> getAttributes() {
        return attributes;
    }
}
